home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / snip0493.zip / VIO.H < prev    next >
C/C++ Source or Header  |  1993-04-05  |  2KB  |  91 lines

  1. /*
  2. **  By: Jim Nutt
  3. */
  4.  
  5. #ifndef VIO_H
  6. #define VIO_H
  7.  
  8. #if __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #if defined(__TURBOC__)
  13.  #define _far far
  14.  #define _pascal pascal
  15. #endif
  16.  
  17. /* initialization and termination functions */
  18.  
  19. int  _far VIOopen(void);
  20. void _far VIOclose(void);
  21.  
  22. /* scrolling functions */
  23.  
  24. void _far VIOscrollright(int x1, int y1, int x2, int y2, int count);
  25. void _far VIOscrollleft(int x1, int y1, int x2, int y2, int count);
  26. void _far VIOscrollup(int x1, int y1, int x2, int y2, int count);
  27. void _far VIOscrolldown(int x1, int y1, int x2, int y2, int count);
  28.  
  29. /* screen clear */
  30.  
  31. void _far VIOclear(int x1, int y1, int x2, int y2);
  32.  
  33. /* write to screen */
  34.  
  35. void _far VIOputc(const char c);
  36. void _far VIOputs(const char far * s);
  37. void _far VIOputr(int x, int y, int w, int h, int _far * b);
  38.  
  39. /* read from screen */
  40.  
  41. int _far VIOgetca(const int x, const int y);
  42. int _far * _far VIOgetra(int x1, int y1, int x2, int y2, int _far * b);
  43.  
  44. /* set colors */
  45.  
  46. void _far VIOsetfore(const int c);
  47. void _far VIOsetback(const int c);
  48.  
  49. /* get current color settings */
  50.  
  51. int  _far VIOgetfore(void);
  52. int  _far VIOgetback(void);
  53.  
  54. /* set the write cursor */
  55.  
  56. void _far VIOgotoxy(int x, int y);
  57.  
  58. /* update the screen and visible cursor */
  59.  
  60. void _far VIOupdate();
  61.  
  62. /* get the current write cursor position */
  63.  
  64. int  _far VIOwherex(void);
  65. int  _far VIOwherey(void);
  66.  
  67. /* get screen information */
  68.  
  69. unsigned int  _far VIOsegment(void);
  70.  
  71. int  _far VIOcolumns(void);
  72. int  _far VIOrows(void);
  73. int  _far VIOmode(void);
  74. int  _far VIOheight(void);
  75.  
  76. /* set segment information */
  77.  
  78. void _far VIOsetSegment(unsigned int s);
  79. void _far VIOsetRows(int r);
  80. void _far VIOsetCols(int c);
  81.  
  82. /* get BIOS cursor location */
  83.  
  84. void _far VIOcursor(int _far * x, int _far * y, int _far * shape);
  85.  
  86. #if __cplusplus
  87. } ;
  88. #endif
  89.  
  90. #endif
  91.